package com.program.houai.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @version v1.0
 * @ProjectName: EOrder-master
 * @ClassName: OrderRoyaltyEntity
 * @Description: TODO(一句话描述该类的功能)
 * @Author: Topcheer
 * @Date: 2024/8/29 11:06
 */
@TableName("tb_order_royalty")
@Data
@ApiModel(value ="订单佣金",description = "订单佣金")
public class OrderRoyaltyEntity {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "主键")
    private int id;

    @ApiModelProperty(value = "用户id")
    private int userId;

    @ApiModelProperty(value = "交易单号")
    private String txnNo;
    @ApiModelProperty(value = "交易说明")
    private String txnDesc;

    @ApiModelProperty(value = "1已结算0未结算3没有上级不需要结算")
    private int isRoyalty;

    @ApiModelProperty(value = "交易金额")
    private int price;

    @ApiModelProperty(value = "订单类型1其它订单 2商城订单")
    private int type;

    @ApiModelProperty(value = "订单类型1其它订单 2商城订单")
    private int number;

    @ApiModelProperty(value = "提成金额")
    private int royaltyPrice;

    @ApiModelProperty(value = "订单支付时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date payTime;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
}
